package com.itheima.chapter10.paralleltools.countDownLatch;

import java.util.concurrent.CountDownLatch;

public class MotherThread extends   Thread{
    private CountDownLatch countDownLatch;
    public MotherThread(CountDownLatch cdl) {
        this.countDownLatch=cdl;
    }

    @Override
    public void run() {
        try {
            countDownLatch.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("妈妈收拾");
    }
}
